<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过度属性</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: #fc6161;
            margin: 100px auto;

            /* 过度属性，加给元素本身 */
            transition: all 0.5s;
            /* 单个属性 */
            /*transition: width 0.5s;*/

        }

        div:hover {
            width: 150px;
            height: 150px;
        }
    </style>
</head>
<body>
<div>

</div>
</body>
</html>